<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   xmlns:pe="http://primefaces.org/ui"
   template="/WEB-INF/templates/public/default.xhtml">
   
   	<f:metadata>
	   	<f:viewParam name="bulletinId" value="#{bulletinHome3.id}"></f:viewParam>
	   	<f:event listener="#{bulletinHome3.initConversation()}" type="preRenderView"></f:event>
   	</f:metadata>
   	
   	<ui:define name="head">
   	</ui:define>
   	
   	<ui:define name="content">
   		<h:form>
			<div class="sub_wrap">
				<div class="Methbox_tit">
					<h2>#{param.bulletinTitle != null ? param.bulletinTitle :"招标公告"}</h2>
					<p:outputPanel rendered="#{request.isUserInRole('supplier')}">
						<p:commandButton rendered="#{bulletinHome3.canApply()}" action="#{bulletinHome3.applyTrade()}" value="我要报名">
							<f:param name="bulletinId" value="#{bulletinHome3.id}"></f:param>
						</p:commandButton>
					</p:outputPanel>
				</div>
			</div>	
		</h:form>							
	</ui:define>
</ui:composition>
